<!DOCTYPE html>
<script src='../../resources/js-test.js'></script>

<div id=div>
  <table>
    <tr id=tr></tr>
  </table>
  <br id=br>
</div>

<script>
selection = getSelection();
selection.setBaseAndExtent(tr, 0, br, 0);
newdoc = document.implementation.createDocument("", null);
newdoc.appendChild(div);

if (window.testRunner) {
  testRunner.dumpAsText(false);
  testRunner.waitUntilDone();
}

requestAnimationFrame(function() {
  testPassed("Renderer did not crash.");
  if (window.testRunner)
    testRunner.notifyDone();
});

</script>
